package middlwares

import (
	"github.com/gin-gonic/gin"
	"github.com/satori/go.uuid"
)

func ServiceMiddleWare() gin.HandlerFunc {
	return func(context *gin.Context) {
		context.Writer.Header().Set("X-Request-Id", uuid.NewV4().String())
		context.Next()
	}
}
